package cn.iocoder.yudao.module.tms.controller.admin.attachmentinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 公司附件信息新增/修改 Request VO")
@Data
public class AttachmentInfoSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27326")
    private Long id;

    @Schema(description = "关联的公司ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32045")
    @NotNull(message = "关联的公司ID不能为空")
    private Long companyId;

    @Schema(description = "附件类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "附件类型不能为空")
    private String attachType;

    @Schema(description = "附件名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "附件名称不能为空")
    private String attachName;

    @Schema(description = "附件存储路径", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "附件存储路径不能为空")
    private String attachPath;

    @Schema(description = "附件大小（字节）")
    private Long attachSize;

    @Schema(description = "附件格式")
    private String attachFormat;

    @Schema(description = "上传人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "上传人不能为空")
    private String uploadUser;

    @Schema(description = "上传日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "上传日期不能为空")
    private LocalDate uploadDate;

    @Schema(description = "附件状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "附件状态不能为空")
    private String attachStatus;

}